package homework.billing;

import homework.billing.ui.MeterWindow;
import homework.billing.ui.SelectOption;

public class Main {

    public static void main(String[] args) throws Exception {

        MeterWindow frame = new MeterWindow();

        String[] meterNames = {"ofo", "滴滴", "锡林浩特", "锡林浩特夜", "badName!!!"};
        for(String meterName: meterNames) {
            try {
                frame.addOption(new SelectOption(meterName));
            } catch (UnsupportedMeterException e) {
                e.printStackTrace();
            }
        }

        frame.pack();
        frame.setVisible(true);

    }
}
